package com.easyCms.base.dao;

import com.easyCms.base.entity.CrmUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface CrmUserDAO extends JpaSpecificationExecutor<CrmUser>, JpaRepository<CrmUser, Long> {

    CrmUser findByHamiCodeAndState(String identityCode, int stateValid);

    CrmUser findByUserNameAndState(String userName, int stateValid);

}
